import module1 from './js/module1'
import module2 from './js/module2'
import mode from './js/mode'
import data from './json/data.json'
import './css/index.scss'

module1.fun()
module2.fun()
mode.fun()

let re = '测试 eslint 自定义规则：不能使用 var 定义变量'
console.log(re);

const fun = () => {
    const arr = [1, 2, 3, 4, 5, 6]
    arr.forEach(item => {
        console.log(item);
    })
    console.log(data);
}
fun()
const obj = JSON.parse(JSON.stringify(data))
for (const key in obj) {
    // console.log('for in');
    // console.log(key, obj);
    if (Object.hasOwnProperty.call(obj, key)) {
        console.log(key, obj[key]);
    }
}
/* for (const i of obj) {
    console.log(i, obj[i]);
} */
// fun()
console.log('app.js');